import http from './http'

const register = (data) => {
    const url = 'auth/users/'
    return http.post(url, data)
}
const activate = (data) => {
    const url = 'auth/users/activation/'
    return http.post(url, data)
}
const login = (data) => {
    const url = 'auth/jwt/create/'
    return http.post(url, data)
}
const refreshToken = (data) => {
    const url = 'auth/jwt/refresh/'
    return http.post(url, data)
}

const reset_password = (data) => {
    const url = 'auth/users/reset_password/'
    return http.post(url, data)
}
const reset_password_confirm = (data) => {
    const url = 'auth/users/reset_password_confirm/'
    return http.post(url, data)
}


export default {
    register,
    activate,
    login,
    reset_password,
    reset_password_confirm,
    refreshToken,
}